#ifndef __GAME_MODEL_DISTANCE_UNIT_HPP__
#define __GAME_MODEL_DISTANCE_UNIT_HPP__

#include "game_model\ih\game_model_idistance_unit.hpp"

namespace GameModel {

class DistanceUnit
	:	public IDistanceUnit
{

public:

	DistanceUnit( int _plainData )
		:	m_plainData( _plainData )
	{
	}

	virtual ~DistanceUnit()
	{
	}

public:

	/*virtual*/ bool operator>=( IDistanceUnit const& _other ) const
	{
		return getPlainData() >= _other.getPlainData();
	}

	/*virtual*/ bool operator<=( IDistanceUnit const& _other ) const
	{
		return getPlainData() <= _other.getPlainData();
	}

	/*virtual*/ bool operator==( IDistanceUnit const& _other ) const
	{
		return getPlainData() == _other.getPlainData();
	}

public:

	/*virtual*/ int getPlainData() const
	{
		return m_plainData;
	}

private:

	int m_plainData;

};

} // namespace GameModel

#endif // __GAME_MODEL_DISTANCE_UNIT_HPP__
